export default [
  {
    path: '*',
    component: resolve => require(['modules/system/NotFound'], resolve)
  },
  {
    path: '/',
    redirect: '/settings'
  },
  {
    path: '/login',
    name: 'login',
    component: resolve => require(['modules/login/index'], resolve)
  },
  {
    path: '/set-password',
    name: 'setPassword',
    component: resolve => require(['modules/login/SetPassword'], resolve)
  },
  {
    path: '/signup',
    component: resolve => require(['modules/login/signup'], resolve),
    children: [
      {
        path: '/signup/account',
        component: resolve => require(['modules/login/signup/Account'], resolve)
      },
      {
        path: '/signup/password',
        component: resolve => require(['modules/login/signup/Password'], resolve)
      },
      {
        path: '/signup/bind',
        component: resolve => require(['modules/login/signup/Bind'], resolve)
      },
      {
        path: '/signup/result',
        component: resolve => require(['modules/login/signup/Result'], resolve)
      }
    ]
  },
  {
    path: '/active',
    component: resolve => require(['modules/login/active'], resolve),
    children: [
      {
        path: '/active/account',
        component: resolve => require(['modules/login/active/Account'], resolve)
      },
      {
        path: '/active/information',
        component: resolve => require(['modules/login/active/Information'], resolve)
      },
      {
        path: '/active/result',
        component: resolve => require(['modules/login/active/Result'], resolve)
      }
    ]
  }
]
